﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Mono.Cecil;
using cilada.engine.Graph;

namespace cilada.engine
{
    class TypeInfoWrapper
    {
        public TypeDefinition TypeDefinition { get; set; }
        public string Container { get; set; }
        public TypeVertex TypeVertex { get; set; }
        public bool IsGenericType
        {
            get
            {
                return (TypeDefinition == null) ? false :  TypeDefinition.HasGenericParameters;
            }
        }

        public TypeInfoWrapper(TypeDefinition typeDef, string container, TypeVertex typeVertex)
        {
            this.TypeDefinition = typeDef;
            this.Container = container;
            this.TypeVertex = typeVertex;
        }
    }
}
